import http from "@/utils/request";

const basePath = process.env.VUE_APP_BASE_TT_FILE


//上传文件
export function upload(data) {
    const formData = new FormData();
    formData.append("file", data);
    return http({
        url: `${basePath}/file/upload`,
        method: 'post',
        data: formData,
        headers: {
            "Content-type": "multipart/form-data"
        }
    })
}